﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class bai1 : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void btn_cong_Click(object sender, EventArgs e)
    {
        int a = int.Parse(txt_1.Text.ToString());
        int b = int.Parse(txt_2.Text.ToString());
        int c = int.Parse(txt_3.Text.ToString());
        int kq = a + b + c;
        txt_kq.Text = kq.ToString();
    }
    protected void btn_nhan_Click(object sender, EventArgs e)
    {
        int a = int.Parse(txt_1.Text.ToString());
        int b = int.Parse(txt_2.Text.ToString());
        int c = int.Parse(txt_3.Text.ToString());
        int kq = a * b * c;
        txt_kq.Text = kq.ToString();
    }
    protected void btn_xoa_Click(object sender, EventArgs e)
    {
        txt_1.Text = "";
        txt_2.Text = "";
        txt_3.Text = "";
    }
    protected void btn_ttuoi_Click(object sender, EventArgs e)
    {
        int b = int.Parse(DateTime.Now.Year.ToString());
        int a = int.Parse(txt_nams.Text.ToString());
        int c = b - a;
        txt_kq1.Text = c.ToString() + " tuoi.";
    }
    protected void btn_nhplai_Click(object sender, EventArgs e)
    {
        txt_nams.Text = "";
    }
}